package com.hubei.car.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author luokangtao
 * @create 2019-08-12 17:27
 */
@Configuration
public class MybatisPlusConfig {

    /**
     * 分页插件(不然的话分页是没反应)
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
